<!-- <div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">待办事项</h1>
</div>
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="col-lg-4">
        <div class="input-group">
          <div class="input-group-btn" >
            <span class="btn btn-default">指标类别名称</span>
          </div>
          <ui-select ng-model="searchform.code" theme="bootstrap">
            <ui-select-match placeholder="请选择机构..">{{$select.selected.company_name}}</ui-select-match>
            <ui-select-choices repeat="item.company_code as item in searchform.company_list | filter: $select.search">
              <span ng-bind-html="item.company_name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
      <div class="col-lg-2 col-lg-offset-2">
        <button class="form-control btn btn-success" ng-click="search(1)">立即搜索</button>
      </div>
      <div class="col-lg-2">
        <button class="form-control btn btn-info" ng-click="add()">添加</button>
      </div>
    </div>
  
    <div class="panel-body">

  
      <table class="table table-striped table-bordered" ng-show="!searchform.loading">
        <thead>
          <tr>
            <th class="col-md-1 text-center">分类编码</th>
            <th class="col-md-1 text-center">分类名称</th>
            <th class="col-md-1 text-center">分类内容</th>
            <th class="col-md-1 text-center">分类状态</th>
            <th class="col-md-1 text-center">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="info in categoryList">
            <td class="text-center">{{info.category_id}}</td>
            <td class="text-center">{{info.category_name}}</td>
            <td class="text-center">{{info.category_content}}</td>
            <td class="text-center">
                  <p ng-if="info.category_state == '0'">草稿</p>
                  <p ng-if="info.category_state == '1'">已发布</p>
                  <p ng-if="info.category_state == '2'">已撤回</p>
            </td>
            <td class="text-center">
              <button type="button" class="btn btn-info btn-xs"  ng-click="getInfo(info)">详情</button>
              <a ng-show="info.category_state == 0 || info.category_state == 2" class="btn btn-primary btn-xs"  ng-click="public(info.category_id)">发布</a>
              <a ng-show="info.category_state == 1"  class="btn btn-warning btn-xs"  ng-click="withdraw(info.category_id)">撤回</a>
              <a ng-show="info.category_state == 0 || info.category_state == 2" ng-click="delete(obj.category_id)" class="btn btn-danger btn-xs">删除</a>
            </td>
          </tr>
        </tbody>
      </table>
      <div class="text-right">
        <pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" 
         previous-text="上一页" max-size="5" next-text="下一页" first-text="首页" last-text="尾页" 
         boundary-links="true" rotate="false" items-per-page="itemsPerPage">
        </pagination>
      </div>
    </div>
  
  </div>
   -->
   <div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
    <div class="panel panel-default">
    <div class="panel-body">
    <div class="col-sm-12">
    
        <div class="row ">
            <div class="col-sm-2">
                <input type="text" class="form-control"  ng-model="searchform.category_name" placeholder="评定级别名称"> 
            </div>
            <div class="col-sm-2 pull-right" ng-if="type == 'guanfang'">
                <button class="btn btn-block btn-info" ng-click="add()">创建类别</button> 
            </div>
            <div class="col-sm-2 pull-right">
                <button class="btn btn-block btn-info" ng-click="search()">搜索</button> 
            </div>
        </div>
    
    </div>
    </div>
    </div>
    <!-- searchArea -->
    
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-condensed table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="col-md-2 text-center">评定级别编码</th>
                        <th class="col-md-2 text-center">评定级别名称</th>
                        <th class="col-md-3 text-center">评定级别内容</th>
                        <th class="col-md-2 text-center">评定级别状态</th>
                        <th class="col-md-3 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="info in categoryList">
                        <td class="text-center">{{info.category_id}}</td>
                        <td class="text-center">{{info.category_name}}</td>
                        <td class="text-center">{{info.category_content}}</td>
                        <td class="text-center">
                              <p ng-if="info.category_state == '0'">草稿</p>
                              <p ng-if="info.category_state == '1'">已发布</p>
                              <p ng-if="info.category_state == '2'">已撤回</p>
                        </td>
                        <td class="text-center">
                          <a type="button" ng-if="type == 'read'" class="btn btn-info btn-xs" ng-click="getInfo(info)">详情</a>
                          <a type="button" ng-if="type == 'guanfang'" ng-show="info.category_state == '0' || info.category_state == '2'" class="btn btn-info btn-xs" ng-click="getInfo(info)">编辑</a>
                          <a type="button" class="btn btn-primary btn-xs" ng-show="info.category_state == 0 || info.category_state == 2" ng-click="public(info.category_id)">发布</a>
                          <a type="button" ng-if="type == 'guanfang'" class="btn btn-warning btn-xs" ng-show="info.category_state == 1" ng-click="withdraw(info.category_id)">撤回</a>
                          <a type="button" ng-show="info.category_state == 0 || info.category_state == 2" ng-click="delete(info.category_id)" class="btn btn-danger btn-xs">删除</a>
                          <!-- <a type="button" ng-show="type == 'guanfang'" ng-click="apply(obj.category_id)" class="btn btn-success btn-xs">申请</a> -->
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="text-right">
                 <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                    first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                    class="m-t-none m-b">
                </pagination>
            </div>
        </div>
    </div>
    
</div>